/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.zcm.modules.xgb.entity;

import org.hibernate.validator.constraints.Length;

import com.zcm.common.persistence.DataEntity;

/**
 * XgbRealEntity
 * @author www
 * @version 2018-10-07
 */
public class XgbReal extends DataEntity<XgbReal> {
	
	private static final long serialVersionUID = 1L;
	private Double lastPx;		// last_px
	private Double pxChangeRate;		// px_change_rate
	private String symbol;		// symbol
	private String originId;		// origin_id
	private String day;		// day
	
	public XgbReal() {
		super();
	}

	public XgbReal(String id){
		super(id);
	}

	public Double getLastPx() {
		return lastPx;
	}

	public void setLastPx(Double lastPx) {
		this.lastPx = lastPx;
	}
	
	public Double getPxChangeRate() {
		return pxChangeRate;
	}

	public void setPxChangeRate(Double pxChangeRate) {
		this.pxChangeRate = pxChangeRate;
	}
	
	@Length(min=0, max=32, message="symbol长度必须介于 0 和 32 之间")
	public String getSymbol() {
		return symbol;
	}

	public void setSymbol(String symbol) {
		this.symbol = symbol;
	}
	
	@Length(min=1, max=64, message="origin_id长度必须介于 1 和 64 之间")
	public String getOriginId() {
		return originId;
	}

	public void setOriginId(String originId) {
		this.originId = originId;
	}
	
	@Length(min=1, max=20, message="day长度必须介于 1 和 20 之间")
	public String getDay() {
		return day;
	}

	public void setDay(String day) {
		this.day = day;
	}
	
}